﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="employeeAdd.aspx.cs" Inherits="employeeAdd"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="m_contentBody" Runat="Server" >
<asp:Panel runat="server" ID="pnlBody">
    <body>

        <table  cellspacing="2" cellpadding ="2" style="height:100%" class="GridItem" >
       
       
        <tr style="text-align:center">
        <td  colspan="2"  class="BigLabelLeftAlign"> Employee&#39;s detail information<br />
            </td>
        </tr>
      <tr>
         <td >
             <br />
             <asp:Label ID="Label1" runat="server" Text="Department" ></asp:Label></td>
         <td >
             <br />
         <asp:DropDownList ID="drlDepartment" runat="server"  Width="300px" 
                 AppendDataBoundItems="True" EnableTheming="False" 
                  
                 DataSourceID="odsDepartment" DataTextField="DepartmentLabel" 
                 DataValueField="DepartmentId" Height="25px">
             <asp:ListItem Value="-1">--Choose Department--</asp:ListItem>
         </asp:DropDownList>
             <asp:ObjectDataSource ID="odsDepartment" runat="server" 
                 SelectMethod="GetDepartments" TypeName="Service.ReferenceDataService">
             </asp:ObjectDataSource>
          &nbsp;
                                                <asp:Label ID="lblRequiredDepartment" runat="server" ForeColor="Red" Visible="False"></asp:Label>
         </td>
      </tr>
      <tr>
         <td style="height: 28px"><asp:Label ID="Label2" runat="server" Text="Company" ></asp:Label></td>
         <td style="height: 28px">
         <asp:DropDownList ID="drlCompany" runat="server"  Width="300px" 
                 AppendDataBoundItems="True" 
                 
                 DataSourceID="odsCompany" DataTextField="CompanyLabel" 
                 DataValueField="CompanyId" Height="25px">
             <asp:ListItem Value="-1">--Choose Company--</asp:ListItem>
         </asp:DropDownList>
             <asp:ObjectDataSource ID="odsCompany" runat="server" 
                 SelectMethod="GetCompanies" TypeName="Service.ReferenceDataService" 
                 OldValuesParameterFormatString="">
             </asp:ObjectDataSource>
          &nbsp;
                                                <asp:Label ID="lblRequiredCompany" runat="server" ForeColor="Red" Visible="False"></asp:Label>
         </td>
      </tr>
      <tr>
         <td><asp:Label ID="Label3" runat="server" Text="Employee Name"></asp:Label></td>
         <td>
         <asp:TextBox  ID="txtEmpName" runat="server"  Width="170px" >
         </asp:TextBox>
         </td>
      </tr>
       <tr>
         <td><asp:Label ID="Label4" runat="server"   Text="Employee Email"></asp:Label></td>
         <td>
         <asp:TextBox  ID="txtEmpEmail" runat="server" Width="170px"  >
         </asp:TextBox>
         </td>
      </tr>
      <tr>
      <td style="height: 28px"><asp:Label ID="Label5" runat="server" Text="Group"></asp:Label></td>
         <td style="height: 28px">
         <asp:DropDownList ID="drlGroup" runat="server"  Width="300px" 
                 AppendDataBoundItems="True" DataSourceID="odsGroup" 
                 DataTextField="GroupLabel" DataValueField="GroupId" Height="25px">
             <asp:ListItem Value="-1">--Choose Group--</asp:ListItem>
         </asp:DropDownList>
             <asp:ObjectDataSource ID="odsGroup" runat="server" SelectMethod="GetUserGroups" 
                 TypeName="Service.ReferenceDataService"></asp:ObjectDataSource>
             &nbsp;
                                                <asp:Label ID="lblRequiredGroup" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            
         </td>
      </tr>
      <tr>
      <td style="height: 28px"></td>
         <td style="height: 28px">
         <asp:CheckBox ID="chb1"  runat="server" Text="Is allow to view report"  >
         </asp:CheckBox>
         </td>
      </tr>
      <tr>
      <td style="height: 28px"><asp:Label ID="Label7" runat="server" Text="User name"></asp:Label></td>
         <td style="height: 28px">
         <asp:TextBox  ID="txtLogin" runat="server"  Width="170px" >
         </asp:TextBox>
         </td>
      </tr>
      <tr>
      <td style="height: 28px"><asp:Label ID="Label8" runat="server" Text="Payroll number"></asp:Label></td>
         <td style="height: 28px">
         <asp:TextBox  ID="txtPayroll" runat="server"  Width="170px"  >
         </asp:TextBox>
         </td>
      </tr>
      
      <tr>
       <td style="height: 28px"><asp:Label ID="Label9" runat="server" Text="Full Domain Name"></asp:Label></td>
         <td style="height: 28px">
         <asp:TextBox  ID="txtDomain" runat="server" Width="170px"   >
         </asp:TextBox>
         </td>
      </tr>
      <tr>
         <td align="right"> </td>
         <td>
            
             &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<asp:Button  ID="btnAdd" runat="server" Text="New" 
              Width="71px" BorderStyle="Dotted" onclick="btnAdd_Click" 
                 CssClass="btnexpress"></asp:Button> 
             <asp:Button  ID="btnSubmit" runat="server" Text="Validate" 
              Width="71px" BorderStyle="Dotted" onclick="Button1_Click" 
                 CssClass="btnexpress" ></asp:Button> <asp:Label ID="lblPermission" runat="server" CssClass="permissionstyle"></asp:Label>
         
             
             <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText="Are you sure to add it ?" TargetControlID="btnAdd">
             </cc1:ConfirmButtonExtender>
         
             
         </td>
      </tr>
     </table>
   

   
   </body>
   </asp:Panel>
</asp:Content>

